-- 15 
-- Posthaste
-- Narrow Escape
-- Crouching Tiger, Hidden Chimera
--- 30
vLast_Binding_Shout_Check = 0.1
function ccR_Hunter_Binding_Shot(specNumber)
	if specNumber == nil then specNumber = ccrSpec() end
	local vUseTalent = ccRS["Hunter_" .. specNumber .. "_UseBindingShot"]
	local vHostileCount = ccRS["Hunter_" ..specNumber .. "_BindingShotCount"]
	if ccrPlayerHasTalent(BINDING_SHOT)
	and ccrSpellIsReady(BINDING_SHOT)
	and vUseTalent
	and (GetTime()-vLast_Binding_Shout_Check) > 1.0
	then
		if ccrTargetCount(8) >= vHostileCount then
			ccrCast(BINDING_SHOT)
			if SpellIsTargeting() == 1 then CastAtLocation(Target:GetLocation()) end
			return
		end
		return
	end
	return
end

--function ccR_Hunter_Wyvern_Sting(specNumber)
--end

function ccR_Hunter_Intimidation(specNumber)
	if specNumber == nil then specNumber = ccrSpec() end
	local vUseTalent = ccRS["Hunter_" .. specNumber .. "_UseIntimidation"]
	if vUseTalent
	and ccrPlayerHasTalent(INTIMIDATION)
	and ccrSpellIsReady(INTIMIDATION)
	and not ccrTargetIsBoss()
	and ccrPetIsAlive()
	and ccrPlayerIsInCombat()
	and ccrValidTarget()
	then
		ccrCast(INTIMIDATION)
		return
	end
	return
end

-- 45
function ccR_Hunter_Exhilaration(specNumber)
	if specNumber == nil then specNumber = ccrSpec() end
	local vUseTalent = ccRS["Hunter_" .. specNumber .. "_UseExhilaration"]
	local vHealth = ccRS["Hunter_" .. specNumber .. "_ExhilarationHP"]
	if vUseTalent
	and ccrPlayerHasTalent(EXHILARATION)
	and ccrSpellIsReady(EXHILARATION)
	and ccrPlayerHealth() <= vHealth
	then
		ccrCast(EXHILARATION)
		return
	end
	return
end
-- Aspect of the Iron Hawk
-- Spirit Bond

-- 60
function ccR_Hunter_Fervor(specNumber)
	if specNumber == nil then specNumber = ccrSpec() end
	local vUseTalent = ccRS["Hunter_" .. specNumber .. "_UseFervor"]
	local vFocus = ccRS["Hunter_" .. specNumber .. "_FervorFocus"]
	if vUseTalent
	and ccrPlayerHasTalent(FERVOR)
	and ccrSpellIsReady(FERVOR)
	and ccrFocus() <= vFocus
	and ccrPlayerIsInCombat()
	then
		ccrCast(FERVOR)
		return
	end
	return
end
function ccR_Hunter_Dire_Beast(specNumber)
	if specNumber == nil then specNumber = ccrSpec() end
	local vUseTalent = ccRS["Hunter_" .. specNumber .. "_UseDireBeast"]
	local vFocus = ccRS["Hunter_" .. specNumber .. "_DireBeastFocus"]
	if vUseTalent
	and ccrPlayerHasTalent(DIRE_BEAST)
	and ccrSpellCanAttack(DIRE_BEAST)
	and ccrFocus() <= vFocus
	then
		ccrCast(FERVOR)
		return
	end
	return
end
-- Thrill of the Hunt
-- 75
function ccR_Hunter_A_Murder_Of_Crows(specNumber)
	if ccrPlayerHasTalent(A_MURDER_OF_CROWS)
	and not ccrSpellIsOnCooldown(A_MURDER_OF_CROWS)
	then
		if ccrSpellIsReady(A_MURDER_OF_CROWS) then
			if ccrSpellCanAttack(A_MURDER_OF_CROWS) then
				ccrCastAttack(A_MURDER_OF_CROWS)
				return
			end
		else
			ccR_Hunter_Focus_Shot()
		end
	end	
end
function ccR_Hunter_Blink_Strikes(specNumber)
end
function ccR_Hunter_Lynx_Rush(specNumber)
end
-- 90
function ccR_Hunter_Glaive_Toss(specNumber)
	if ccrPlayerHasTalent(GLAIVE_TOSS)
	and not ccrSpellIsOnCooldown(GLAIVE_TOSS)
	then
		if ccrSpellIsReady(GLAIVE_TOSS) then
			if ccrSpellCanAttack(GLAIVE_TOSS) then
				ccrCastAttack(GLAIVE_TOSS)
				return
			end
		else
			ccR_Hunter_Focus_Shot()
		end
	end		
end
function ccR_Hunter_Powershot(specNumber)
end
function ccR_Hunter_Barrage(specNumber)
end